import java.util.Arrays;

public class StackTest {

	public static void main(String[] args) {
		
		Stack s = new Stack(5); //stack mit 4 elementen inhalt
		//Stack o = new Stack(2);

		System.out.println("Hier wird die Klasse Stack getestet:");
		System.out.println();

		System.out.println("Vor Aktion:");
		System.out.println("	Buffer isEmpty? " + s.isEmpty());
		System.out.println("	Buffer isFull? " + s.isFull());
		System.out.println();

	
		// aus der angabe
		//System.out.println(s.top());
		s.push(1);  
		s.pop();
		s.push(2);
		//System.out.println(s.top());
		s.push(3);
		s.pop();
		s.push(4);
		//System.out.println(s.top());
		s.push(5);
		s.pop();
		s.pop();
		s.pop();
		//System.out.println(s.top());
		
		
		System.out.println("Nach Aktion:");
		System.out.println("	Buffer isEmpty? " + s.isEmpty());
		System.out.println("	Buffer isFull? " + s.isFull());
		System.out.println();
		System.out.println("Inhalt des neuen Stacks: "
				+ Arrays.toString(s._result));
		System.out.println("	Result isFull? " + s.isFullResult());
		System.out.println();
	
	}

}
